package com.zero.demo.jms.entity.result;

import java.io.Serializable;

/**
 * <p>接口返回值</p>
 *
 * @author yangaj
 * @version V1.0
 * @Package org.onesport.framework.result.domain
 * @date 2017/9/9 11:29
 */
public class Result<T> implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private Integer code;

    private String msg;

    private Object data;

    //private String sessionId;
    public Result() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

  //  public boolean isSuccess() {
//        return code == ResultCodeEnum.SUCCESS.getCode();
//    }
}
